package com.aiyige.page.test;

/**
 * Created by zhuyakun on 2017/12/26.
 */

public class EventSTB {

    long currentPosition;
    int playStatus;
    String content;

    private EventSTB(Builder builder) {
        setContent(builder.content);
    }

    public static Builder newBuilder() {
        return new Builder();
    }

    public long getCurrentPosition() {
        return currentPosition;
    }

    public void setCurrentPosition(long currentPosition) {
        this.currentPosition = currentPosition;
    }

    public int getPlayStatus() {
        return playStatus;
    }

    public void setPlayStatus(int playStatus) {
        this.playStatus = playStatus;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public static final class Builder {
        private long currentPosition;
        private int playStatus;
        private String content;

        private Builder() {
        }

        public Builder currentPosition(long currentPosition) {
            this.currentPosition = currentPosition;
            return this;
        }

        public Builder playStatus(int playStatus) {
            this.playStatus = playStatus;
            return this;
        }

        public EventSTB build() {
            return new EventSTB(this);
        }

        public Builder content(String content) {
            this.content = content;
            return this;
        }
    }
}
